from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^helloworld/', include('helloworld.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    #(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
    (r'^polls/$', 'helloworld.coder.views.index'),
    (r'^polls/(?P<poll_id>\d+)/$', 'helloworld.coder.views.detail'),
    (r'^polls/(?P<poll_id>\d+)/info$', 'helloworld.coder.views.info'),

    #(r'^admin/', include(admin.site.urls)),
)
